time and space complexity of turing machine